﻿<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<meta name="apple-mobile-web-app-capable" content="yes" />
		<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
		<meta name="apple-mobile-web-app-title" content="思路广惠">
		<title>选择银行卡</title>

		<meta content="telephone=no" name="format-detection" />

		<link rel="stylesheet" type="text/css" href="../../src/css/base.css?1.0" />
	</head>

	<body class="body-bg">
		<header class="header">
			<a href="javascript: history.go(-1);" class="head-le"><i class="iconfont icon-fanhui i2m"></i></a>
			<h1 class="header-txt">选择银行卡</h1>
			<a class="head-ri" href="bankcard.html">管理</a>
		</header>
		<section class="top1rem">
			<ul id="bankcard">

			</ul>
		</section>

		<script type="text/html" id="bankcards">
			{{# for(var i = 0; i
			< d.PageData.length; i ++ ){ }} <li class="adress-cho flexs" data-id="{{d.PageData[i].MembersBank_ID}}">
				<!--<img src={{d.img}}{{d.PageData[i].Image_Url}} />-->
				<span style="margin: 0 0 0 1rem">
                    {{d.PageData[i].Bank_Name}}
                </span> {{# if(d.PageData[i].MembersBank_Mark == 1){ }}<i class="iconfont icon-checkmark i2m"></i> {{# } }}
				</li>
				{{# } }}
		</script>
		<script src="http://apps.bdimg.com/libs/laytpl.js/1.1/laytpl.js"></script>
		<script src="//cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
		<script src="//cdn.bootcss.com/layer/3.0.1/mobile/layer.js"></script>
		<script src="../../src/js/all.js" type="text/javascript" charset="utf-8"></script>
		<script>
			silks.temp(["#bankcards", "#bankcard"], "/WorkMembersBank/GetMembersBankByID", {
				MembersID: MembersID,
				PageIndex: 1
			}, function() {

				$(document).on("click", ".adress-cho", function() {
					var MembersBankID = $(this).attr("data-id");
					$(this).addClass("body-bg");
					$.get(urls + "/WorkMembersBank/MembersBankDefault", {
						MembersID: MembersID,
						MembersBankID: MembersBankID,
						AppID: AppID,
						Token: Token
					}, function(res) {
						if(res.Return_ID == 0) { 
							history.go(-1);
						} else {
							layers(res.Return_Mess);
						}
					})
				})
			});
		</script>
	</body>

</html>